package com.cauli.file.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cauli.model.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author Cauli
 * @date 2023-03-18 12:00
 * @description 回收站
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("recovery_file")
@ApiModel(value = "RecoveryFile", description = "回收站")
public class RecoveryFile extends BaseEntity {
    /**
     * 回收站ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId("recovery_file_id")
    private Long recoveryFileId;

    /**
     * 用户文件id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("user_file_id")
    private Long userFileId;

    /**
     * 删除时间
     */
    @TableField("delete_time")
    private String deleteTime;

    /**
     * 删除批次号
     */
    @TableField("delete_batch_num")
    private String deleteBatchNum;
}


